home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / tcl-faq / part1 < prev    next >
Encoding:
Text File  |  1995-07-25  |  37.9 KB  |  880 lines

  1. Subject: FAQ: comp.lang.tcl Frequently Asked Questions (1/5)
  2. Newsgroups: comp.lang.tcl,comp.answers,news.answers
  3. From: lvirden@cas.org (Larry W. Virden)
  4. Date: Sat, 29 Oct 1994 12:13:43 GMT
  5.  
  6. Archive-name: tcl-faq/part1
  7. Comp-lang-tcl-archive-name: tcl-faq.part01
  8. Version: 6.2
  9. Last-modified: Oct 28, 1994
  10.  
  11.  
  12.     For more information concerning Tcl (see "tcl-faq/part2"),
  13. (see "tcl-faq/part3"), (see "tcl-faq/part4"), or (see "tcl-faq/part5").
  14. Also (see "tcl-faq/commercial-uses"), (see "tcl-faq/usage"), 
  15. (see "tcl-faq/bibliography/part1").
  16.  
  17. Index of questions:
  18.  
  19. I.   Origin of the comp.lang.tcl FAQ information and
  20.     to whom do I contact for more information about the FAQ?
  21. II.  What is Tcl?  Tk?  Extended Tcl?  Rush?  What is Tcl _not_? 
  22. III. Do these packages run on my machine?
  23.     A. Unix
  24.     B. MacOS
  25.     C. INTEL DOS-like systems
  26.     D. VMS
  27.     E. AmigaDOS
  28.     F. NeXT
  29.     G. Other
  30. IV.  Other than C, What languages can talk to tcl/tk?
  31.     A. Shell
  32.     B. C++
  33.         C. Modula-3
  34.     D. Eiffel
  35.     E. Ada
  36.     F. Perl
  37.     G. Prolog
  38.     H. Other
  39. V.   What training material is available?
  40.     A. Training courses, materials, etc.
  41.     B. Time-related seminars, conferences, sessions.
  42. VI.  Where do I report problems, bugs, or enhancements about Tcl - or -
  43.     what is comp.lang.tcl?
  44.  
  45. End of FAQ Index
  46.  
  47. ----------------------------------------------------------------------
  48.  
  49. ------------------------------
  50.  
  51. From: FAQ General information
  52. Subject: -I- Origin of the comp.lang.tcl FAQ information.
  53.  
  54.     The information in this set of FAQs comes from several sources.  The
  55. primary source of information is the group itself - I spend (much too
  56. much) time each month culling through what I feel are some of the best
  57. answers, gathering up new information on ports, etc. and adding it
  58. here.  I also gather new application information and add it as
  59. best I can.  The next most predominant source of information comes from
  60. the authors of the various software packages.  Finally, a small amount
  61. comes from my personal experiences.
  62.  
  63.     The primary location for the commercial use of Tcl FAQ is 
  64. <URL:ftp://ftp.aud.alcatel.com/tcl/docs/tcl-commercial-faq.gz>.
  65. The author is gwl@cpu.com (Gerald W. Lester).  This FAQ contains information
  66. either about commercial products which incorporate Tcl as a part of
  67. them or firms which teach about Tcl and Tk in some manner.
  68.  
  69.     The Japanese translation of the comp.lang.tcl FAQ can be
  70. located at
  71. <URL:ftp://ftp.aud.alcatel.com/tcl/docs/tcl-faq-j5.3.tar.gz>.
  72. This file contains Japanese EUC-Kanji codes.  Contact
  73. taguchi@fox.aic.co.jp (Taguchi Takeshi - Father of Japanese translation of FAQ)
  74. for more information.
  75.  
  76.     Three new general FAQs are in progress.  These are spin-offs
  77. from this original source document.  The first will contain a bibliography
  78. of published material related to Tcl, and will be managed by
  79. glv@utdallas.edu (Glenn Vanderburg).  (See "tcl-faq/bibliography/part1")
  80. or ftp it at <URL:ftp://ftp.aud.alcatel.com/tcl/docs/tcl-faq-bib.gz>.
  81.  
  82.     The second FAQ will contain the series of Tcl-related questions 
  83. and answers and is managed by joe@morton.rain.com (Joe Moss). 
  84. (See "tcl-faq/usage") or find it at
  85. <URL:ftp://ftp.aud.alcatel.com/tcl/docs/tcl-faq-Q-and-A.gz>.
  86.  
  87.     The third will contain Tk-related questions and answers and 
  88. is managed by tja@cpu.com (Thomas J. Accardo).  You can
  89. (see "tcl-faq/tk/part1") or find it
  90. at <URL:ftp://ftp.aud.alcatel.com/tcl/docs/tcl-faq-tk-usage.gz>
  91.  
  92.     If you have corrections, enhancements, modifications,
  93. clarifications, suggestions, ideas, new questions, new answers to
  94. questions which have never been asked, or something else that I have
  95. not covered above, contact me at lvirden@cas.org.
  96.  
  97. ------------------------------
  98.  
  99. From: FAQ General information
  100. Subject: -II- What is Tcl?  Tk?  Extended Tcl? 
  101.  
  102. o Highlights of Tcl based languages
  103.  
  104.     Tcl and Tk originated with Dr. John Ousterhout (Oh'-stir-hout -
  105. last syllable rhymes with rout, not root) from the University of California,
  106. Berkeley, California.
  107.  
  108.     Tcl (current release version 7.3) stands for ``tool command
  109. language'' and is pronounced ``tickle.'' The author's home ftp site for
  110. the Tcl source code is <URL:ftp://ftp.cs.berkeley.edu/ucb/tcl/>.
  111. Tcl is actually two things: a language and a library.  First, Tcl is a
  112. simple textual language, intended primarily for issuing commands to
  113. interactive programs such as text editors, debuggers, illustrators, and
  114. shells.  It has a simple syntax and is also programmable, so Tcl users
  115. can write command procedures to provide more powerful commands than
  116. those in the built-in set.
  117.  
  118.     Second, Tcl is a library package that can be embedded in
  119. application programs.  The Tcl library consists of a parser for the Tcl
  120. language, routines to implement the Tcl built-in commands, and
  121. procedures that allow each application to extend Tcl with additional
  122. commands specific to that application.  The application program
  123. generates Tcl commands and passes them to the Tcl parser for
  124. execution.  Commands may be generated by reading characters from an
  125. input source, or by associating command strings with elements of the
  126. application's user interface, such as menu entries, buttons, or
  127. keystrokes.  When the Tcl library receives commands it parses them into
  128. component fields and executes built-in commands directly.  For commands
  129. implemented by the application, Tcl calls back to the application to
  130. execute the commands.  In many cases commands will invoke recursive
  131. invocations of the Tcl interpreter by passing in additional strings to
  132. execute (procedures, looping commands, and conditional commands all
  133. work in this way).
  134.  
  135.     An application program gains three advantages by using Tcl for
  136. its command language.  First, Tcl provides a standard syntax:  once
  137. users know Tcl, they will be able to issue commands easily to any
  138. Tcl-based application.  Second, Tcl provides programmability.  All a
  139. Tcl application needs to do is to implement a few application-specific
  140. low-level commands.  Tcl provides many utility commands plus a general
  141. programming interface for building up complex command procedures.  By
  142. using Tcl, applications need not re-implement these features.  Third,
  143. extensions to Tcl, such as the Tk toolkit, provide mechanisms for
  144. communicating between applications by sending Tcl commands back and
  145. forth.  The common Tcl language framework makes it easier for
  146. applications to communicate with one another.  
  147.  
  148.     Note that Tcl was designed with the philosophy that one should
  149. actually use two or more languages when designing large software
  150. systems.  One for manipulating complex internal data structures, or
  151. where performance is key, and another, such as Tcl, for writting
  152. smallish scripts that tie together the C pieces and provide hooks for
  153. others to extend.  For the Tcl scripts, ease of learning, ease of
  154. programming and ease of glue-ing are more important than performance or
  155. facilities for complex data structures and algorithms.  Tcl was
  156. designed to make it easy to drop into a lower language when you come
  157. across tasks that make more sense at a lower level.  In this way,
  158. the basic core functionality can remain small and one need only bring
  159. along pieces that one particular wants or needs.
  160.  
  161.     Tk (current release 3.6) is an extension to Tcl which provides
  162. the programmer with an interface to the X11 windowing system.  Note
  163. that Tk has been successfully compiled under X11 R4, X11 R5, X11 R6,
  164. as well as Sun's NeWS/X11 environments.
  165.  
  166. The author's home ftp site for the Tk source is the directory
  167. <URL:ftp://ftp.cs.berkeley.edu/ucb/tcl/>.
  168. Note that many users will encounter Tk via the ``wish'' command.  Wish
  169. is a simple windowing shell which permits the user to write Tcl
  170. applications in a prototyping environment.  Tk 4.0 is in the works.
  171. It is expected to appear by first quarter 95.  Some of the changes to
  172. expect are:
  173.  
  174. - A major overhaul of text widgets (embedded windows, horizontal
  175.   scrolling, better vertical scrolling, more display options such as
  176.   vertical spacing, margins, justification, and baseline offsets).
  177. - An overhaul of bindings, including the binding tags discussed at
  178.   last year's workshop and  a change in the evaluation mechanism to make
  179.   bindings more composable.
  180. - A few other changes to event handling, including a new "fileevent"
  181.   command (similar to Mark Diekhans' "addinput") and the ability to
  182.   cancel "after" handlers.
  183. - A general-purpose and user-extensible mechanism for images, intended to
  184.   handle things like color icons, full-color images, and video.
  185. - Improvements to colormap and visual handling.
  186. - A solution to the X resource id wrap-around problem that tends to cause
  187.   errors in long-running applications.
  188. - A bunch of improvements to widgets, including justification in entries and
  189.   the ability to have multi-line text in widgets like buttons and labels.
  190.  
  191. Other things which may appear are:
  192.  
  193. - support for Motif keyboard traversal highlight rings and
  194.   completely overhaul the widget bindings to bring them into better Motif
  195.   compliance.  Emacs-like bindings will also be provided for entries and
  196.   texts where they don't conflict with Motif bindings.
  197. - Application embedding (like Sven Delmas' "tksteal" stuff, I think).
  198. - Overhauls of the send command, the selection, and the input focus
  199.   mechanism.
  200.  
  201. Early beta release of Tk 4.0 is expected before fourth quarter 1994.
  202.  
  203.     The future of Tcl and Tk is quite bright.  This year Dr. Ousterhout
  204. announced that he has been employed by Sun Microcomputer, Inc. to do
  205. some further development of Tcl / Tk.  Some of the short term (within the
  206. next 12 months or so) plans that Dr. O has mentioned are:
  207.  
  208.  
  209. - Ports of Tcl and Tk to both the PC and Mac, so scripts written on one
  210.   platform will run on any of the others, presenting their UI in the look
  211.   and feel of the platform on which they run.
  212. - A commercial-quality graphical interface designer like Visual Basic or
  213.   NextStep.
  214. - Dynamic loading of C code in Tcl.
  215. - Incorporating Nathaniel Borenstein's Safe-Tcl back into the Tcl core,
  216.   so that there is a safe mechanism for executing untrusted scripts that
  217.   arrive via the Internet.
  218.  
  219. John has given me permission to add this quote as well:
  220.  
  221. From: ouster@tcl.eng.sun.com (John Ousterhout)
  222. Newsgroups: comp.lang.tcl
  223. Subject: Re: The future of TcL/Tk's Copyright Terms
  224. Date: 31 Aug 1994 20:08:19 GMT
  225. Organization: Sun Microsystems, Inc.
  226. Message-ID: <342nvj$6e9@engnews2.Eng.Sun.COM>
  227.  
  228. > I discussed the status of the Tcl and Tk libraries with people at Sun
  229. > as part of my pre-hire negotiations, and we're in agreement that they
  230. > will remain free and unrestricted just as they have always been.  Future
  231. > enhancements made to Tcl and Tk by my group at Sun, including the ports
  232. > to Macs and PCs, will be made freely available to anyone to use for
  233. > any purpose.  My view, and that of the people I report to at Sun, is
  234. > that it wouldn't work for Sun to try to take Tcl and Tk proprietary
  235. > anyway:  someone (probably me, in a new job) would just pick up the
  236. > last free release and start an independent development path.  This
  237. > would be a terrible thing for everyone since it would result in
  238. > incompatible versions.
  239.  
  240. > Of course, Sun does need to make money from the work of my team or else
  241. > they won't be able to continue to support us.  Our current plan is to
  242. > charge for development tools and interesting extensions and applications.
  243. > Balancing the public and the profitable will be an ongoing challenge for
  244. > us, but it is very important both to me and to Sun to keep the support
  245. > of the existing Tcl community.  I imagine this discussion will repeat
  246. > from time to time over the next few years, but I think we can make things
  247. > work out well for everyone.
  248.  
  249.  
  250.     Extended Tcl (tclX) (Version 7.3b) - This is an extended set of
  251. commands for Tcl developed by Karl Lehenbauer and Mark Diekhans.  The
  252. authors' home ftp site for Extended Tcl is ftp.neosoft.com.  Extended
  253. Tcl is oriented towards system programming tasks, with many additional
  254. interfaces to the Unix operating system along with other useful
  255. utilities.
  256.  
  257.     Rush is a Tcl-like extension language announced at the Tcl'94
  258. Workshop.  Its syntax and semantics are very similar to Tcl's, but it
  259. additionally offers an optimizing compiler and a new feature called rules.
  260. Its primary advantage over Tcl is performance within a factor of 100 of C,
  261. whereas a Tcl compiler is unlikely to do better than a factor of 1000 of
  262. C.  Rush is not yet publicly available, though ambitious alpha testers
  263. are encouraged to inquire.  Mail can be sent to either asah@cs.berkeley.edu
  264. or blojo@cs.berkeley.edu.  For more information, see the paper
  265. <URL:ftp://ginsberg.cs.berkeley.edu/pub/asah/papers/rush-tcl94.ps.gz>.
  266.  
  267.  
  268. o General information about Tcl and Tk by glv@utdallas.edu (Glenn Vanderburg)
  269.  
  270. Tcl (Tool command language) is a freely distributable simple,
  271. interpreted language designed to be used as a common extension and
  272. customization language for applications.  It was designed and
  273. implemented by Dr. John Ousterhout in the hope that application
  274. designers could spend more of their time on applications and less on
  275. scripting languages, and in the hope that users could spend less time
  276. learning new scripting languages for each new application.  Many useful
  277. applications, some of them sold commercially, use Tcl as their
  278. scripting language.
  279.  
  280. Tcl is clean and regular, and relatively easy for non-hackers to
  281. learn.  It is command-oriented, and commands added by applications and
  282. users exist on an equal footing with the built-in Tcl commands.  Tcl
  283. has both simple variables and associative arrays (tables), and all
  284. values (including procedure bodies) are represented as strings.
  285. Simple customization scripts (such as preference initialization
  286. scripts) usually look much like novice users expect them to: a series
  287. of simple commands which set options.
  288.  
  289. Tcl is implemented as a C library, which can be embedded in an
  290. application.  The application can add its own commands to the
  291. interpreter (using a clean C interface).  It is distributed under a
  292. license which allows use for any purpose with no royalties.
  293.  
  294. The Tk toolkit is a Tcl extension (a group of new Tcl commands) which
  295. provides a Tcl interface to the X Window System.  Tk is one of the
  296. easiest ways to build a graphical interface to an application, and due
  297. to the interpreted nature of Tcl, Tk-based interfaces tend to be much
  298. more customizable and dynamic than those built with one of the C- or
  299. C++-based toolkits.  Tk implements the Motif look and feel.  A number
  300. of interesting X applications are implemented entirely in Tk, with no
  301. new application-specific commands at all.  Tk also provides a
  302. mechanism by which one application can send Tcl scripts to other
  303. Tk-based applications running on the same display, for easy
  304. cooperation between tools.
  305.  
  306. Tcl and Tk are mature, and quite stable, but they are not static:
  307. Dr. Ousterhout has moved from Berkeley to Sun Microsystems, where his
  308. group is pursuing such projects as a commercial-quality Tk
  309. graphical interface designer, an on-the-fly Tcl compiler, and
  310. Macintosh and Microsoft Windows ports of Tk.  He has said that the
  311. copyright status and licensing provisions of Tcl and Tk will not change.
  312.  
  313.  
  314. As to what Tcl is not - in the context of the discussion in
  315. comp.lang.tcl, it is not related directly to the Think C Library (TCL)
  316. available on the Mac.  Confusingly enough, the language concerned with
  317. here _is_ available on the Mac, and someone in fact may have used Think C
  318. to compile it there.  Just one of those universal 'coincidences' that
  319. set the stage for Vogon interstellar highway construction crews.
  320.  
  321. ------------------------------
  322.  
  323. From: FAQ General information
  324. Subject: -III- Do these packages run on my machine?
  325.  
  326.  
  327. A. Unix
  328.  
  329.     Tcl runs on Sun 3s and 4s running SunOS 4 and SunOS 5 (Solaris
  330. 1.x and 2.x), DECstations running Ultrix, DEC VAXen running Ultrix or
  331. BSD, DEC Alphas running OSF/1, 386s running SCO Unix, Xenix, Bell-Tech,
  332. Silicon Graphics running IRIX, HPs running HP-UX as well as HP Snakes
  333. running OSF/1 and HP-UX.  Intel [34]86 systems running
  334. 386bsd, netbsd, freebsd, BSDI, and Linux have Tcl ported.  Various CPUs
  335. running System V.4 report having ported Tcl.  Tcl also appears to be
  336. running on Sequent Symmetry running Dynix as well as OSF/1.  It also
  337. has been reported to run fine on IBM RS6000 under AIX 3.x as well as
  338. IBM ES/9000 and AIX/ESA.  There were few problems getting it running
  339. under Mt. Xinu Mach.  It also has been ported to Encore 91's running
  340. UMAX V (an 88k based System V with BSD extension Unix).  It also runs
  341. on Apollos running BSD/SYSV.  Tcl runs on a Cray running Unicos.  Folks
  342. have ported Tcl to a Mac (IIfx) running A/UX v3.  Someone ported Tcl to
  343. a Sony NeWS machine running NEWS-OS 4.2.  A port to a Convex 3220 and
  344. 3880 was also reported.
  345.  
  346.     Tk (being based on Tcl) generally requires X11R4 or better as
  347. the only additional software requirement.  It runs on any of the above
  348. Unix systems with that base of software.  It also runs on VMS and
  349. OSF/1.
  350.  
  351.     For information on Tcl/Tk/TclX availability (see "tcl-faq/part4").
  352.  
  353.  
  354. B. MacOS
  355.  
  356.     (See "tcl-faq/part2") for details of a Macintosh Tcl Mailing list.
  357.  
  358.     Ray Johnson <rjohnson@aic.lockheed.com> has a package called
  359. MacTcl.  This is a fairly straight port of Tcl to the Macintosh.  It is
  360. designed to be used as libraries to be embedded into other
  361. applications.  A basic shell is included.  Most Tcl features are
  362. present, including many Unix-like features.  Additional features
  363. include supporting the env variable and sourcing Tcl code from a 
  364. resource.  The current version is available at
  365. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/MacTcl7.3.sea.hqx>.
  366.  
  367.     As of this time, I have no leads on anyone porting Tk to MacOS.
  368. I also have not heard of anyone porting Tcl/Tk to a Apple PowerMac.
  369.  
  370.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  371. for the latest port locations and versions.
  372.  
  373.  
  374. C. INTEL DOS-like systems
  375.  
  376.     Numerous ports to DOS are available.  One unsupported port to
  377. MS-DOS of Tcl and Extended Tcl V6.0a, done by
  378. Karl@NeoSoft.com (Karl Lehenbauer), is available on
  379. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/dostcl.zoo> for binaries and
  380. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/dostcl60.zoo> for source.
  381.  
  382.     A port of Tcl V6.2 to MS-DOS was done by 
  383. johnm@cajal.uoregon.edu (John Martin) and is available via FTP from
  384. <URL:ftp://cajal.uoregon.edu/pub/tcl.dos.port/> and
  385. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/tcl62.dos.tar.Z>.
  386.  
  387.     A source code only port of Tcl V6.7 to MS-DOS, done by 
  388. PSPRENG@CIPVAX.BIOLAN.UNI-KOELN.DE (Peter Sprenger), is available from
  389. him, somewhere on wuarchive.wustl.edu
  390. or as
  391. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/tcl67dos.zip>.
  392.  
  393.     A port of Tcl, version 7.3, to MS-DOS, done by
  394. tpoind@advtech.uswest.com (Tom Poindexter), is available as
  395. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/mstcl73*.zip>.  This
  396. also includes TclX 7.3a and Tk ported to Desqview/X libraries.
  397.  
  398.     A port of Tcl, V6.1 ?, done by unknown, to MS-DOS Windows
  399. V 3.1 ?, is available as binary at
  400. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/w_tclbin.zip> and as source at
  401. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/w_tclsrc.zip>.
  402.  
  403.     A package to take a Tcl source distribution and port it cleanly
  404. to MS-DOS, so that it can be compiled has been written by 
  405. Bob Yennaco (byennaco@east.sun.com).  It is available as
  406. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/tcl2dos.sh.gz>
  407.  
  408.     An MS-DOS Windows DLL instance of Tcl 6.2 was generated by
  409. Ugo Cei <ugo@oliver.sublink.org>.  Contact him for more details.
  410.  
  411.     A Windows DLL was made by ekki@prakinf.tu-ilmenau.de (Ekkehard Beier)
  412. by slightly modifying a DOS 6.2 Tcl port.  There are still problems
  413. with the system/WinExec command.  A very rudimentary Debugger User Interface
  414. using Borland's Classlib is part of the zip-file, too.
  415. The source was used also with BC3.1++/AF on MS W3.1.  You can get a copy from
  416. <URL:ftp://metallica.prakinf.tu-ilmenau.de/pub/DOS/wintcl.zip>
  417. via anonymous ftp.  Unfortunately Ekki doesn't have time currently to
  418. finish the Windows port and user Interface.
  419.  
  420.     haga@sra.co.jp (Toshihiko Haga) and miyata@sra.co.jp (Shigeaki Miyata)
  421. announced twin (tcl/tk for MS-Windows), which does not support exec and
  422. send, but supports a -bitmap for Windows .bmp files.  A few other
  423. modifications or special exceptions are noted.  This package's files
  424. can be found at
  425. <URL:ftp://ftp.sra.co.jp/pub/lang/tcl/{twinesrc,twinebin}.zip> and
  426. <URL:ftp://ftp.sra.co.jp/pub/lang/tcl/{twinesrc,twinebin}.doc>.
  427.  
  428.     Professor Ken K. Kubota <ken@ms.uky.edu> has announced a port
  429. of Tcl 7.3 and Tk3.6a to MS DOS Windows using Borland C++ 4.0.  Fetch
  430. the README files from the ftp sites
  431. <URL:ftp://ftp.ms.uky.edu/pub/tk-win/{tkwinbin,tkwin,fedloc}.zip>
  432. for more information.
  433.  
  434.     Omar Stanford <omar@fcm.missouri.edu> reported in March of 1994
  435. that he had almost completed his port of Tcl 7.3 to MS-Windows 3.1.
  436. He had incorporated extensions for networking (including NetWare),
  437. Windows Sockets, and many Windows API functions.  He also was working on
  438. a facility for dynamically allocating commands to the Tcl environment.
  439. If there are other extensions that one would like to see under Windows 3.1,
  440. or if you are interested in beta testing, drop him a line.
  441.  
  442.     Also, Simon Kenyon <simon@news.itc.icl.ie> of the Information
  443. Technology Centre, Dublin, IRELAND, mentions that they are starting to
  444. port Tk to MS-Windows.  There is a mailing list (see below) for
  445. folk who are interested.
  446.  
  447.     Steve Furr <furr@qnx.com> reports getting Tcl ported to QNX
  448. without a lot of trouble.  He mentions that QNX users who have the
  449. beta X should have gotten a CD-ROM update with Tcl and Tk on the CD.
  450.  
  451.     A port of Tcl 7.3, except for glob or command pipelines, to OS/2 2.x
  452. using C Set++ has been done by wwb@wwa.com (Bud Bach).  As of this date, I
  453. have no leads on anyone porting Tk to any version of OS/2.  There is some
  454. OS/2 X client support kits available for purchase, which might make it
  455. easier to port Tk.
  456.  
  457.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  458. for the latest port locations.
  459.  
  460.  
  461. D. VMS
  462.  
  463.     A port of Tcl 7.3 and Tk 3.6 to VMS was done by Angel Li
  464. <angel@flipper.rsmas.miami.edu>.  The files are at
  465. <URL:ftp://mango.rsmas.miami.edu/pub/VMS-tcl/tcl73-tk36-itcl13.tar.Z>
  466. and were compressed with the Unix compress command.  The pathname may
  467. be subject to change as I have seen notes from Angel Li mentioning that
  468. BLT 1.6 and the photo widget have also been ported.  These were compiled
  469. on an Alpha running OpenVMS T6.1.
  470.  
  471.     A port of Tcl 6.3 onto VMS 5.5 was done by Wolfgang Kechel
  472. <wolfgang@pr-wiesbaden.de> and Till Imanuel Panzschke.  Contact them
  473. directly for assistance.
  474.  
  475.     A port of most of Tcl 6.7 and Tk 3.2 was done by John Kimball
  476. <jkimball@src.honeywell.com> to VMS 5.5.  The files are on
  477. <URL:ftp://src.honeywell.com/pub/tcl67-tk32-on-vms55.tar.Z>.
  478.  
  479.     A port of Tcl 7.0 and Tk 3.3 has being done to VMS on the
  480. VAX and Alpha.  These are available as:
  481. <URL:ftp://src.honeywell.com/pub/vms-tcl/tcl70-tk33-on-vms55.tar.Z>
  482. or
  483. <URL:ftp://src.honeywell.com/pub/tcl70-tk33-on-vms55.tar.Z>.
  484.  
  485.     Gerald W. Lester (gwlester@cpu.com) says the following _should_ work.
  486. If you installed the POSIX package on VMS (its free), then you should be 
  487. able to configure and make tcl.  To access tcl you would have to do one 
  488. of the following: 1) Use the POSIX shell, or 2) do a "psx tcl".
  489. Tcl scripts would not execute directly from DCL; to execute a script foo.tcl
  490. from DCL you would have to do "psx foo.tcl".
  491. DISCLAIMER: I have not built any version of tcl under VMS POSIX, these
  492. comments are based on other work I've done with VMS POSIX.
  493. <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/vms-sharable-binaries.tar.gz>
  494. is a version of Tcl/Tk for VMS built as a sharable library.  It includes a
  495. dynamic module loading command.  Otherwise, it matches the src.honeywell.com
  496. version.
  497.  
  498.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  499. for the latest port locations.
  500.  
  501.  
  502. E. AmigaDOS
  503.  
  504.     Karl Lehbauer <karl@sugar.NeoSoft.com> has indicated that
  505. he started a port of Tcl 3.x to the Amiga.  He has a working
  506. version, but is no longer working on it.  His version uses the
  507. Amiga's shared libraries and implements the "send" command.
  508. He wrote a MIDI file loader and player as well.  Contact him for
  509. further details.  
  510.  
  511.     Ty Sarna <tsarna@endicor.com> has ported Tcl 6.x to the Amiga.  
  512. He says:
  513. > I've ported 3.3 and several 6.x versions to the Amiga, and it can be
  514. > done in under and hour if you leave out the "Unix" functionality.
  515. > However, "Unix" functionality includes things like file I/O!
  516.  
  517.     Another Amiga user, colas@opossum.inria.fr (Colas Nahaboo), mentioned
  518. that using Amiga gcc and the PD X server DaggeX and Xlibs that a port of
  519. Tk might be possible.
  520.  
  521.     hnm@hermes.bouw.tno.nl (Marco van der Heiden) has completed a port
  522. to the Amiga, and suggests Amiga developers contact him by email.  
  523.  
  524.     wulf@hotdog.ping.de (Berndt Wulf) reports building Tcl and
  525. Tk on an Amiga system running NetBSD1.0b2, using the sources on the
  526. Walnut Creek Tcl/Tk CD-ROM.
  527.  
  528.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  529. for the latest port locations.
  530.  
  531.  
  532. F. NeXT
  533.  
  534.     Gianmaria Bertanzon <gm@itnsun4.lii.unitn.it> reports:
  535. We are using tk3.2 on NeXT ( Motorola ) under NextStep 3.0 under X.
  536. The compilation was easy. (we do not remember precisely all the steps)
  537.  
  538.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  539. for the latest port locations.
  540.  
  541.  
  542. G. Other
  543.  
  544.     A port to the Apple IIgs and GNO 1.1/GSOS environment is underway.
  545.  
  546.     A beta port of Tcl 7 has been done to VxWorks.
  547.     You can find it at
  548. <URL:ftp://thor.atd.ucar.edu/pub/vx/tclvx7.0.v2.tar.gz>
  549. or a name similar (if updates have occurred).
  550.  
  551.     Also (see "tcl-faq/part4"), the Tcl programs/packages catalog,
  552. for the latest port locations.
  553.  
  554.  
  555. ------------------------------
  556.  
  557. From: FAQ General information
  558. Subject: -IV- Other than C, what languages can talk to tcl/tk?
  559.  
  560.  
  561. A. Shell
  562.  
  563.     There are at least two interfaces which are shell-like.  The
  564. first is wish, which is a windowing shell like interface that is a part
  565. of the Tk package.  The second is tcl, a line command interpreter that
  566. is part of the Extended Tcl package.
  567.  
  568. B. C++
  569.  
  570.     There is a package called Objectify which can be used to assist
  571. one in turning C++ classes into Tcl object types.
  572.  
  573.     If you wish to use C++ with Tcl then you must have your main()
  574. in a source file that is compiled with a C++ compiler; this will
  575. ensure that the necessary C++ pre-main initialization code is
  576. executed.
  577.  
  578.     You can call tcl and tk routines (or other C code) routines from C++ 
  579. provided that the function prototypes avoid C++ name mangling by using
  580. the C++ linkage specification :
  581.  
  582.     extern "C"  ... prototype ...
  583.  
  584.     Fortunately, tcl.h and tk.h will provide these specifications when
  585. compiled with a C++ compiler and so you can just use them directly.
  586.  
  587.     You can construct your main using normal tcl and tk routines, or
  588. use tkMain.c and tkAppInit.c with minor modifications. Ken Yap's
  589. patches obtainable from ... 
  590.  
  591.  
  592.     <URL:ftp://ftp.aud.alcatel.com/tcl/distrib/tk3.2forC++.patch>
  593. is a patch that allows tk 3.2 main.c and other extension routines
  594. to be compiled with a C++ compiler.  Thanks to Ken Yap <ken@syd.dit.csiro.au>
  595. for this code.
  596.  
  597.     C++ functions and static class member functions can be used to
  598. create Tcl command using Tcl_CreateCommand in the normal way. 
  599. Non-static member functions cannot be used so simply, Tcl would
  600. have to supply a "this" pointer. 
  601.  
  602.     Check out tcl++.h in Extended Tcl.  Based on an original
  603. implementation by Parag Patel, it defines a Tcl interpreter class by
  604. which Tcl interpreters can be created as objects under C++.
  605.  
  606.     Mark Diekhans and Karl Lehenbauer have used this, in
  607. combination with the handle facility in Extended Tcl, to build Tcl
  608. commands around C++ classes.
  609.  
  610.     The Tcl handle facility provides a way to manage table entries
  611. that can be referenced by a textual handle from Tcl code.  This is
  612. provided for applications that need to create data structures in one
  613. command, return a reference (i.e. pointer) to that particular data
  614. structure and then access that data structure in other commands.  An
  615. example application is file handles.
  616.  
  617.     A handle table was built containing pointers to the instances
  618. of a class that were to be accessed from Tcl, say a class `foo_cl', and
  619. then a "new" command defined that created an instance of that class and
  620. returned a Tcl handle to it.  The handle could then passed among Tcl
  621. commands that accessed each member function.  The handle is in effect
  622. an explicit `this' pointer.
  623.  
  624.     For example:
  625.  
  626.      set obj [foo_cl::new]
  627.      foo_cl::baz $obj "Hello world"
  628.      foo_cl::delete $obj
  629.  
  630. It's not totally object-oriented, but it's still very usable.
  631.  
  632.  
  633. C. Modula-3
  634.  
  635.     Norman Ramsey <elan.uucp!nr> says:
  636.     A long time back, Eric Muller posted a Modula-3 interface to
  637. the C Tcl library.  I wrote down a Modula-3/Tcl interface that used
  638. Modula-3 types rather than C types, and that used objects to build
  639. closures for commands.  I wrote part of the implementation but never
  640. finished it.  I have mailed copies to carroll@udel.edu, who asked the
  641. question, and I will post them if there seems to be general interest.
  642.  
  643.     Also, there is an interface between Tk and Modula-3 that is a part
  644. of the Modula-3 archives on gatekeeper.dec.com, and Tcl-DP and
  645. Modula-3 have been merged.
  646.  
  647.  
  648. D. Eiffel
  649.  
  650.     stephan@cs.tu-berlin.de (Stephan Herrmann) says:
  651.     ... [the tclish package provides] the marriage of two very different
  652. principles by means of combining two programming languages into a
  653. hybrid program architecture.  
  654.  
  655.     There are three classes for the user - tcl interpretor, tk application,
  656. and tk window.  See <URL:ftp://hepunx.rl.ac.uk/pub/eiffel/tclish> for
  657. details.
  658.  
  659.  
  660. E. Ada
  661.  
  662.     dennis@dennis.cs.colorado.edu (Dennis Heimbigner) introduced
  663. an adatcl package which gives Ada programmers access to Tcl interpreters.
  664. See the catalog for details of the package.
  665.  
  666. F. Perl
  667.  
  668.     Two different projects are underway - see comp.lang.perl
  669. for discussions on adding a Tk like interface to Perl version 4 as well
  670. as Perl version 5.  This is more an interface based on Tk ideas
  671. than to actual Tcl code from what I understand.
  672.  
  673. G. Prolog
  674.  
  675.     The package ProTcl is an interface between Prolog and Tcl/Tk.
  676. It works best with ECLiPSe, but the foreign interface of SICStus and Quintus
  677. is also provided. The interface is dynamically loaded into a Prolog process
  678. and it gives access to Tcl commands and to handling Tk events. It is also
  679. possible to call Prolog from Tcl, handle Tk events in Prolog and to
  680. pass Prolog variables back to Tcl. See
  681. <URL:http://www.ecrc.de/eclipse/html/protcl.html> for more details.
  682.  
  683. H. Other
  684.  
  685.     Work at consolidating Python and Tk is underway - discussion
  686. is proceeding in comp.lang.python on this front as the code is primarily
  687. Python.
  688.  
  689.     Some work relating to the Fresco CORBA interpreter has resulted in a
  690. Tcl-based interpreter which interacts with that environment. 
  691.  
  692.     Some work on Tk bindings for the Dylan language are being investigated
  693. as well as Tk bindings for Sather.
  694.  
  695.     Duncan Sinclair <sinclair@dcs.gla.ac.uk> has details of a hack
  696. into wish.c some hooks for a Tk <-> any language system, and has been using 
  697. it for communication with functional languages such as Haskell and Lazy ML.
  698. A paper, plus sample code, is available by ftp from
  699. <URL:ftp://ftp.dcs.gla.ac.uk/pub/glasgow-fp/authors/Duncan_Sinclair/fumx.*>.
  700.  
  701.     The InterLanguage Unification project is a system that promotes
  702. software interoperability via interfaces.  It has the ability to allow
  703. Common Lisp, ANSI C, C++, Modula 3 to interact and plans to add Python,
  704. Tcl, and GNU Emacs-Lisp shortly.
  705.  
  706.     Of course the Wafe application environment is designed to make
  707. it easier to do X like applications from within several languages using
  708. Tk as a basis.
  709.  
  710.     There are several interfaces to allow one to interface with SQL
  711. though some are specific to a database such as Oracle. 
  712.  
  713.     There is an interpretor for Silicon Graphics machines for SGI's
  714. GL language. 
  715.  
  716.     There is an interface to WOOL.
  717.  
  718.     For more details on the above efforts, (see also "tcl-faq/part04").
  719.  
  720.  
  721. ------------------------------
  722.  
  723. From: FAQ General information
  724. Subject: -V- What training material is available?
  725.  
  726.  
  727. A. Training courses, materials, etc.
  728.  
  729. 1. A text book by John K. Ousterhout is available from Addison Wesley.
  730. It's title is _Tcl and the Tk Toolkit_ and has an ISBN of 0-201-63337-X.
  731. The first printing was in April of 1994.  I believe that the third printing
  732. is now available.  The book primarily covers Tcl 7.3 and Tk 3.6.
  733.  
  734. 2. A physical copy of the Tcl / Tk distributed documentation is
  735. available at the Northside Copy Central in Berkeley under the name "TCL" and
  736. is titled "Tcl/Tk Documents".  Northside Copy Central is at 1862 Euclid 
  737. with a phone of (510) 849-9600.  It costs approx. $15-$20 for the book in
  738. a spiral bound, pink cover, clear plastic front and back format.
  739.  
  740. 3. A tutorial by Don Libes is in the works.  Here is a blurb from the author
  741. himself:
  742.  
  743. Title: Exploring Expect
  744. Subtitle: A Tcl-Based Toolkit for Automating Interactive Applications
  745. Publisher: O'Reilly and Associates, Inc
  746. ISBN: 1-56592-089-9
  747. Pages: 575
  748. Expected Date: October-November '94
  749.  
  750. For all of you who thought that the Expect man page was too long and too
  751. terse at the same time, this book provides relief.  "Exploring Expect"
  752. is an introduction and comprehensive tutorial to Expect.  Numerous
  753. examples are provided and explained, demonstrating how to save you time
  754. and money.  Example topics include how to write patterns, do signal
  755. handling, use Expect as a telnetable daemon, and use Expect with Tk and
  756. other Tcl extensions.
  757.  
  758. The book also includes an innovative introduction to Tcl - if you've
  759. had trouble using Tcl before, all of a sudden, it will make a lot more
  760. sense.  And while Exploring Expect concentrates primarily on using
  761. Expect with Tcl, programmers attempting to automate interactive
  762. programs using C, Perl, Python, or any other language will find this
  763. book helpful because many of the concepts underlying Expect-like
  764. programming are common to all languages.
  765.  
  766. 4. Additional books specifically dealing with Tcl are in the process of
  767. being written. For instance, by Brent Welch, _Practical Programming in
  768. TCL and TK_ to be published by Prentice Hall.
  769.  
  770. 5. Computerized Processes Unlimited has a combined Tcl/Tclx reference
  771. manual for sale.  They also offer courses on Tcl.
  772. (See also "tcl-commercial-faq") for more information.
  773.  
  774. 6. NeoSoft Communications Services teaches introductory and advanced
  775. Tcl courses on site or at their location in Houston, Texas.
  776. (See also "tcl-commercial-faq") for more information.
  777.  
  778.  
  779. (See "tcl-faq/bibliography/part1") for details of more books magazine
  780. and journal articles, proceedings papers, and thesises relating to the
  781. Tcl family of languages.
  782.  
  783. B.  Time-related seminars, conferences, sessions.
  784.  
  785. 1. There have been, in the past, seminars at Usenix and an MIT X
  786. conference taught by John Ousterhout (and sometimes by others) on Tcl and Tk.
  787. (See also "tcl-faq/part02") for the URL to the slides from the most recent 
  788. of these presentations.
  789.  
  790. 2. An upcoming USENIX symposium will be dealing with Perl, Tcl and other
  791. similar languages.  Here is the information I have to date.
  792.  
  793. Symposium on Very High Level Languages
  794. October 26-28, 1994
  795. El Dorado Hotel
  796. Santa Fe, New Mexico
  797. Program Chair: Tom Christiansen (tchrist@usenix.org)
  798. Extended abstracts due June 30, 1994
  799.  
  800. 3. University of Maryland Baltimore County is offering
  801. CMSC491C - Special Topics in Computer Science - Scripting Languages.
  802. This is an intro to scripting languages with an emphasis on Perl and
  803. Tcl, but also mentioning sed, awk, etc.  Taught by Bob Tarr, Tuesdays
  804. and Thursdays from 5:30-6:45pm.  Call (410) 455-2336 (Continuing
  805. Education Department) to sign up as a special non-degree candidate.
  806. Info provided by finin@cs.umbc.edu (Tim Finin).
  807.  
  808. 4. The UC Berkeley Extension program is offering a 10 week course on
  809. "Developing User Interfaces with X Windows and C++"taught by
  810. Sriram Srinivasan. This course is being conducted on the
  811. UC Berkeley (Berkeley, CA, USA) campus from Sep 15 thru Nov 17, every
  812. Thursday, from 7-10 p.m.  It includes Tcl, Fresco, ET++, as well as
  813. many other UI development choices. For course details, please contact
  814.       Mark Palermo
  815.       Continuing Education in Engg.
  816.       (510)642-4151, course@garnet.berkeley.edu
  817.  
  818. Course EDP number: EDP 308684
  819. Course Fees : $335
  820.  
  821.  
  822. 5. On October 4, 1994, the First International Obfuscated Tcl Code Contest
  823. was announced by karrels@sol.acs.uwosh.edu (Edward L. Karrels).  The
  824. rules, judges, dates, etc. remain to be determined.  Contact Mr. Karrels
  825. for more details.
  826.  
  827.  
  828. ------------------------------
  829.  
  830. From: FAQ General information
  831. Subject: -VI- Where do I report problems, bugs, or enhancements - or -
  832.         What is comp.lang.tcl?
  833.  
  834.     There are two alternatives for reporting bugs and problems.
  835. The first is the Usenet news group <URL:news:comp.lang.tcl>, an unmoderated 
  836. Usenet newsgroup, created for the discussion of the Tcl programming language
  837. and tools that use some form of Tcl, such as: the Tk toolkit for the X window
  838. system, Extended Tcl, and expect.  Please note that postings of source
  839. code to comp.lang.tcl does not automatically get archived on
  840. ftp.aud.alcatel.com (the User Contributions archive site) - if you want
  841. your code to be available, you will need to make arrangements with the
  842. folks there to have it added.  See elsewhere in the FAQ for more details on
  843. the user contrib archive site.
  844.  
  845.     The second would be to report problems, suggestions, new
  846. ideas, etc. directly to the author.  Email to
  847.  
  848. John.Ousterhout@eng.sun.com (John Ousterhout)
  849.  
  850. will reach the author of Tcl and Tk - to find the email
  851. address of the authors of other Tcl/Tk based programs,
  852. (see "tcl-faq/part4"), and (see "tcl-faq/part5").
  853.  
  854.     One question that comes up fairly often concerning comp.lang.tcl
  855. is why it isn't split.  The newsgroup varies in traffic, but recently
  856. I have seen it as much as 45 messages a day (counting current cross
  857. postings, etc.)  Dr. Ousterhout was the created of the unmoderated
  858. comp.lang.tcl.  Currently, no one has come forward with the time and
  859. resources to run a discussion of how a split could be handled, nor
  860. have any moderators stepped forward to take over moderation of a group
  861. such as comp.lang.tcl.announce for instance.  So to date, such a question
  862. is good for adding to the existing traffic, but that is about all the
  863. farther things go.
  864.  
  865. ------------------------------
  866.  
  867. End of comp.lang.tcl Frequently Asked Questions (1/5)
  868. *****************************************************
  869. -- 
  870. :s Great net resources sought...
  871. :s Larry W. Virden                 INET: lvirden@cas.org
  872. :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
  873. The task of an educator should be to irrigate the desert not clear the forest.
  874. -- 
  875. :s Great net resources sought...
  876. :s Larry W. Virden                 INET: lvirden@cas.org
  877. :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
  878. The task of an educator should be to irrigate the desert not clear the forest.
  879.  
  880.